<!--本文件由FirstUI授权予关赛川（手机号： 1 5  60  05 1  520 5，身份证尾号：22 6  5 1 9）专用，请尊重知识产权，勿私下传播，违者追究法律责任。-->
<template>
	<view class="payCont">
		<view class="contA marin25">
			<view class="foodpackbu-litm">
				<image :src="baseOssUrl +'icon/img-l.png' " class="fd-img" mode=""></image>
				<view class="itempack-right">
					<view class="title-cont">
						<text class="tit-name">王婆大虾</text>
						<image :src="baseOssUrl + 'icon/rightJt.png' " class="img-jt" mode="" @click="goFoodPack"></image>
					</view>
					<view class="ratebu-cont">
						<view class="ratebu-textA">
							<text class="addres-text">周一至周日</text>
							<text>免预约</text>
						</view>
					</view>
					<view class="addres-cont">
						<view class="addres-textA">
							<text class="addres-text">随时退</text>
							<text class="addres-text">过期自动退</text>
							<text class="addres-text">到店</text>
						</view>
					</view>
					<view class="subtotalA">
						<text class="subtotal-price">¥399</text>
					</view>
				</view>
			</view>

		</view>
		<!-- 商家 -->
		<view class="business marin25">
			<view class="bus-cont">
				<text class="bus-name">莱真烤肉</text>
				<view class="bus-lx">
					<image :src="baseOssUrl+'icon/tel-phone.png' " mode=""></image>
					<text>联系商家</text>
				</view>
			</view>
			<view class="bus-yingye">
				<image :src="baseOssUrl + 'icon/time-img.png'" mode=""></image>
				营业中 08:00-00:00
			</view>
			<view class="bus-addres">
				<image :src="baseOssUrl + 'icon/addres-img.png'" mode=""></image>
				距您100m·微山岛三里庄幸福路大槐树旁
			</view>
		</view>
		<!-- end -->
		<!-- 到店吃套餐 -->
		<view class="foodPackEat marin25">
			<view class="eat-title">
				到店吃套餐
			</view>
			<view class="" v-for="(eatItem,eatindex) in eatList" :key="eatindex">
				<view class="food-title">
					{{eatItem.name}}
				</view>
				<view class="food-list">
					<view class="food-item" v-for="(foodItem,index) in 4" :key='index'>
						<view class="food-left">
							<text>椒情麻香</text>
							<text class="item-num">（1份）</text>
						</view>
						<view class="food-right">
							￥28
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- end -->
		<!-- 温馨提示 -->
		<view class="reminder marin25">
			<view class="rem-title">
				温馨提示
			</view>
			<view class="rem-cont">
				<view class="rem-item">
					<text class='item-k'>有效期</text>
					<text class='item-v v1'>2021.12.30至2023.11.29 23:59（周末
						法定节假日通用）</text>
				</view>
				<view class="rem-item">
					<text class='item-k'>使用时间</text>
					<text class='item-v'>团购券24小时可用</text>
				</view>
				<view class="rem-item">
					<text class='item-k'>使用规则</text>
					<view class='item-v item-vlist'>
						<text>不可使用包间</text>
						<text>本单发票由商家提供，请在消费时向商家
							索取</text>
						<text>商家提供免费WiFi</text>
						<text>免费提供4个停车位</text>
					</view>
				</view>
			</view>
		</view>
		<!-- end -->
		<!-- 订单信息 -->
		<view class="order-info marin25">
			<view class="order-title">
				订单信息
			</view>
			<view class="order-cont">
				<view class="order-item">
					<text class='order-ik'>订单号</text>
					<view class="order-iv">
						<text class=''>4892698528782798</text>
						<text class='order-icopy'>复制</text>
					</view>
				</view>
				<view class="order-item">
					<text class='order-ik'>手机号</text>
					<text class='order-iv'>134****6386</text>
				</view>
				<view class="order-item">
					<text class='order-ik ik1'>下单时间</text>
					<text class='order-iv'>2022-09-08 10:56</text>
				</view>
				<view class="order-item">
					<text class='order-ik ik2'>数量</text>
					<text class='order-iv'>1</text>
				</view>
				<view class="order-item">
					<text class='order-ik ik3'>总价</text>
					<text class='order-iv'>¥78</text>
				</view>

			</view>
		</view>
		<!-- end -->
		<!--继续支付 -->
		<view class="lookBook">
			<view class="lookbtn marin25" @click="bookClick">
				<view class="zhi-fu">
					<text>距离支付</text>
					<text class="zhi-time">
						00:20:00
					</text>
				</view>  
				<fui-button background="#35743D" width='240rpx' height='72rpx' :margin="['0', '0']" radius='50rpx' size="26">
					￥{{payPrice}}<text class="btn-name">继续支付</text>
				</fui-button>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		baseOssUrl
	} from '@/common/settings';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	export default {
		data() {
			return {
				baseOssUrl: baseOssUrl,
				eatList: [{
					name: "·特色美食",
					foodItemList: []
				}, {
					name: "·清爽饮品",
					foodItemList: []
				}],
				payPrice: '125'
			}
		},
		onLoad() {

		},
		methods: {

			leftClick() {
				uni.navigateBack({
					delta: 1
				});
			},
			goFoodPack() {
				uni.navigateTo({
					url: '/pages/fpackageDetails/index'
				})
			},

		}
	}
</script>

<style lang="scss" scoped>
	.payCont {
		height: 100%;
		background: #EFEFEF;
		padding: 24rpx 0 200rpx;

		.contA {
			background: #FFFFFF;
			border-radius: 16rpx;
			padding: 24rpx;
			position: relative;

			// .cont-paycont {


			.foodpackbu-litm {
				display: flex;
				position: relative;
				background-color: #FFFFFF;
				border-radius: 16rpx;
				font-size: 28rpx;
				display: flex;
				padding-bottom: 10rpx;

				.fd-img {
					width: 220rpx;
					height: 210rpx;
				}

				.itempack-right {
					width: 65%;
					margin-left: 24rpx;
					line-height: 50rpx;

					.title-cont {
						display: flex;
						justify-content: space-between;
						font-size: 28rpx;
						font-weight: bold;

						.tit-name {
							color: #1D1D1D;
						}

						.img-jt {
							position: absolute;
							right: 10rpx;
							width: 10rpx;
							height: 18rpx;

						}
					}

					.addres-cont {
						color: #969696;
						display: flex;
						align-items: center;
						justify-content: space-between;

						.addres-textA {
							font-size: 24rpx;

							.addres-text {
								margin-right: 15rpx;
							}
						}


						.addres-compute {
							display: flex;
							align-items: center;

							image {
								width: 36rpx;
								height: 36rpx;
							}
						}
					}

					.subtotalA {
						display: flex;
						justify-content: flex-start;

						.subtotal-price {
							color: #D93C3C;
							font-size: 32rpx;
							font-weight: bold;
						}
					}

					// 时间
					.ratebu-cont {
						color: #969696;
						font-size: 24rpx;
						display: flex;
						justify-content: space-between;

						.addres-text {
							margin-right: 15rpx;
						}

						.addres-textA {
							font-size: 24rpx;
						}
					}
				}
			}

			// }

		}

		// 店家
		.business {
			background: #FFFFFF;
			margin-top: 24rpx;
			border-radius: 16rpx;
			padding: 24rpx;

			.bus-cont {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 24rpx;

				.bus-name {
					font-size: 30rpx;
					font-weight: bold;
				}

				.bus-lx {
					display: flex;
					align-items: center;
					font-size: 26rpx;

					image {
						width: 30rpx;
						height: 30rpx;
						margin-right: 10rpx;
					}
				}
			}

			.bus-yingye {
				color: #707070;
				font-size: 24rpx;
				margin-bottom: 10rpx;

				image {
					width: 26rpx;
					height: 26rpx;
					margin-right: 10rpx;
				}
			}

			.bus-addres {
				color: #707070;
				font-size: 24rpx;

				image {
					width: 22rpx;
					height: 29rpx;
					margin-right: 10rpx;
				}
			}
		}

		//到店吃套餐
		.foodPackEat {
			background-color: #FFFFFF;
			border-radius: 16rpx;
			margin-bottom: 30rpx;
			padding: 5rpx 24rpx 24rpx;
			font-size: 28rpx;
			line-height: 50rpx;
			margin-top: 24rpx;

			.eat-title {
				font-size: 30rpx;
				font-weight: bold;
			}

			.food-title {
				font-size: 28rpx;
				font-weight: bold;
				margin-top: 24rpx;
			}

			.food-list {

				.food-item {
					display: flex;
					justify-content: space-between;

					.food-left {
						font-size: 28rpx;

						.item-num {
							font-size: 26rpx;
							color: #989898;
						}
					}

					.food-right {
						font-size: 30rpx;
					}
				}
			}
		}

		.reminder {
			background-color: #FFFFFF;
			border-radius: 16rpx;
			padding: 24rpx;
			margin-top: 24rpx;

			.rem-title {
				font-size: 30rpx;
				font-weight: bold;
				margin-bottom: 36rpx;
			}

			.rem-cont {
				.rem-item {
					font-size: 28rpx;
					color: #1D1D1D;
					display: flex;
					justify-content: flex-start;
					margin-bottom: 24rpx;

					.item-k {
						color: #7E7E7D;
						width: 20%;
					}

					.item-v {
						width: 80%;
					}

					.item-vlist {
						font-size: 28rpx;
						display: flex;
						flex-direction: column;
						align-items: flex-start;
						justify-content: center;
						line-height: 50rpx;
					}
				}
			}
		}

		// 订单信息
		.order-info {
			background-color: #FFFFFF;
			border-radius: 16rpx;
			padding: 24rpx;
			margin-top: 24rpx;

			.order-title {
				font-size: 30rpx;
				font-weight: bold;
				margin-bottom: 36rpx;
			}

			.order-cont {
				.order-item {
					font-size: 28rpx;
					color: #1D1D1D;
					display: flex;
					justify-content: flex-start;
					align-items: center;
					margin-bottom: 24rpx;

					.order-ik {
						color: #7E7E7D;
						width: 20%;
					}

					.order-iv {
						width: 80%;

						.order-icopy {
							color: #1D1D1D;
							margin-left: 16rpx;
							padding: 2rpx 5rpx;
							background: #E5E5E5;
						}
					}



				}
			}
		}

		// 支付按钮
		.lookBook {
			background: #FFFFFF;
			width: 100%;
			height: 120rpx;
			position: fixed;
			bottom: 0rpx;
			z-index: 999;

			.lookbtn {
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 26rpx;
				padding-top: 20rpx;
				.zhi-fu {
					display: flex;
					flex-direction: column;

					.zhi-time {
						color: #D93C3C;
						font-size: 20rpx;
						margin-top: 10rpx;
					}
				}
				.btn-name{
					margin-left: 24rpx;
				}
			}
		}
	}
</style>
